home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-10 | 1.6 KB | 46 lines | [TEXT/MPS ] |
- # MakeOberon - Raw conversion of Pascal interface file
- #
- # SYNOPSIS
- # MakeOberon source destination
- #
- # © Jürgen Geßwein 1994,1995
-
- If `Exists "{2}"` == ""
- Canon -a -s Rename.Dict "{1}" | Translate '@%' '. ' >"{2}"
- Set Exit 0
- Target "{2}"
- MoveWindow 3 3;SizeWindow 480 280; Format -f Courier -s 10
- Find •; Replace -c ∞ /∂{/ "(*"
- Find •; Replace -c ∞ /∂}/ "*)"
- Find •; Replace -c ∞ /([ ∂t]+=[ ∂t]+)®1/ "*®1"
- Find •; Replace -c ∞ /∂'(????)®1∂'/ LONG∂(∂"®1∂"∂)
- Find •; Replace -c ∞ /(PROCEDURE[ ∂t]+[a-z0-9_]+)®1/ "®1*"
- Find •; Replace -c ∞ /∂*∂:/ "*():"
- Find •; Replace -c ∞ /^/ "POINTER TO "
- Find •; Replace /(File:≈)®1.p/ "®1.mod"
- Replace /•UNIT/ "(*$TAGS-*)∂n(*$CALLING PASCAL*)∂nMODULE"
- Replace -c ∞ /•([ ∂t]+[a-z][a-z0-9_]*)®1:/ "®1*:"
- Find •; Replace -c ∞ /∂*[ ∂t]*:/ "*():"
- Find •; Replace -c ∞ /2∂*∂*∂(/ "ASH(1,"
- Find •; Replace -c ∞ /∂[0..0∂]/ "1 (*ΔΔ [0..0]*)"
- Find •; Replace -c ∞ /∂[0..1∂]/ "2 (*ΔΔ [0..1]*)"
- Find •; Replace -c ∞ /∂[0..2∂]/ "3 (*ΔΔ [0..2]*)"
- Find •; Replace -c ∞ /∂[0..255∂]/ "256 (*ΔΔ [0..255]*)"
- Find •; Replace -c ∞ /∂[0..([a-z0-9]+)®1-1∂]/ "(*ΔΔ [0..*)®1(*ΔΔ -1]*)"
- Set CaseSensitive 1
- Find •; Replace -c ∞ /1 ∂* ∂((ASH∂(1,[¬)]+∂))®1∂)/ "®1"
- Find •; Replace -c ∞ /0∂+∂((≈)®1∂);/ "®1;"
- Find •; Replace -c ∞ /UNIV/ "(*ΔΔ UNIV*)"
- Find •; Replace -c ∞ /PACKED/ "(*ΔΔ PACKED*)"
- Find •; Replace -c ∞ /$IFC/ "$IF"
- Find •; Replace -c ∞ /$ELSEC/ "$ELSE"
- Find •; Replace -c ∞ /$ENDC/ "$END"
- Set CaseSensitive 0
- Find •
- Close -y "{Target}"
- Set Exit 1
- Else
- Beep
- End
-
- # Replace /(PROCEDURE≈∂n)®1PROCEDURE/ "®1∂tEXTERNAL PASCAL;∂nPROCEDURE"